﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ConsoleApp7
{
    public enum cai : int
    {
        铁锅炖大鹅,
        火烧,
    }
    class CookRobot : Robot
    {
        public int a;
        public CookRobot(string name, cai Cai) : base(name)
        {
            a = (int)Cai;
        }
        public override void Working()
        {
            Console.WriteLine("炒菜机器人现在启动");
            if (a == 0)
            {
                Console.WriteLine("请稍等");
                Console.WriteLine("......");
                Console.WriteLine("你的铁锅炖大鹅好了");
            }
            else if (a == 1)
            {
                Console.WriteLine("请稍等");
                Console.WriteLine("......");
                Console.WriteLine("你的火烧好了");
            }
        }
    }
}
